﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Volo.Abp.Application.Services;

namespace Es.Abp.Application.Services
{
    public class DemoService : ApplicationService
    {
        public string GetException(int i)
        {
            if (i == 0)
            {
                throw new Exception("Show On VS");

            }
            else if (i == 1)
            {
                throw new Volo.Abp.UserFriendlyException("友好错误", code: "404");

            }
            return "RT";
        }
    }
}
